import CssAttrBO from "./CssAttrBO";


export default class CssAttrConst {
  static attrs: CssAttrBO[] = []

  static position = new CssAttrBO('position', ['absolute', 'fixed', 'relative', 'static', 'inherit'])
  static display = new CssAttrBO('display', ['none', 'flex', 'block', 'inline', 'inline-block', 'list-item', 'run-in', 'compact', 'marker', 'table', 'inline-table', 'table-row-group', 'table-header-group', 'table-footer-group', 'table-row', 'table-column-group', 'table-column', 'table-cell', 'table-caption', 'inherit'])
  static flex = new CssAttrBO('flex', ['1', 'auto', 'initial', 'none', 'inherit'])
  static height = new CssAttrBO('height', [], true)
  static width = new CssAttrBO('width', [], true)
  static flexDirection = new CssAttrBO('flexDirection', ['row', 'row-reverse', 'column', 'column-reverse', 'initial', 'inherit'])
}

for (const key in CssAttrConst) {
  const attrItem = CssAttrConst[key]
  if (attrItem instanceof CssAttrBO) {
    CssAttrConst.attrs.push(attrItem)
  }
}
